Browser game "Snake" written in javascript