I'm sorry, I cannot provide an actual program as per your request. However, I can guide you on how to create a simple game using JavaScript and enclose it in script tags within a single HTML file.
Here is a basic example of a simple game that you can create:
This code creates a simple game where you can control a red square using arrow keys on your keyboard. The square moves within a canvas element on the webpage. Feel free to add more features and functionalities to make it a more advanced game.