A simple javascript game