use simpler module pattern
give some love to snake.js