isNaN function to check a number if string or not in JavaScript