Guess the number in JS