Really, really simple sample game in JavaScript.