As an AI text-based model, I can assist you in developing a game in JavaScript. However, since I cannot directly create an HTML file or execute code, I can provide you with an example code for a simple game implementation using JavaScript.
This code sets up a basic HTML page with a canvas element representing the game screen. The player object represents a square that can be moved using the arrow keys. The `update` function clears the canvas, draws the player, and repeatedly calls itself using `requestAnimationFrame`.
Please note that this is a very basic example and can be expanded upon to create a more complete game. You can add obstacles, enemies, scoring, and more to make it more engaging.