Little game in javascript