Classic snake game written in JS