How To Convert String Input To Int In Javascript