SNAKE in js on html canvas