A numbers guessing game using Javascript