Integrated the snake js