A simple javascript snake game