Snake in pure js. Simple as it gets. Played on a flat torus. Forked from zprima/snake-js-game, with a slight adaptation by myself: going backwards do not kill you, and you can play it on touchscreens.
Just run a server or test it at http://albamath.com/snake. See also repositories albamath/snake-X and albamath/snake-L.