Classic snake game in JavaScript / DOM