JavaScript - Check if a number is even or odd in JavaScript