game written in JavaScript