The game Snake implemented in JavaScript