Use parseFloat to convert string to number rather and int