Minimal snake game written in Javascript