Most simple classical snake game implemented with javascript