trying to write a simple javascript game, outlined on my blog.