Number guessing game in Javascript, written with Raley