init snake.js