[javascript] Converting string to number in javascript/jQuery