Simple JavaScript game