js game of snake using html5 canvas and js