Snake in the browser, written in Javascript