snake.js
Code