Update snake.js

Added missing use strict directive