In-browser snake game using vanilla JS and jQuery