a little game in javascript