[javascript] How to determine if a number is odd in JavaScript