Quick number guesser game in javascript, so that I can get my head around the ruby one.