a game in Javascript