Improved readability of snake.js