Sure, here is a basic implementation of a game similar to Subway Surfers in a single HTML file with JavaScript. This example is a simple and basic version of the game using pictograms for ease of understanding.
This is a very basic example and does not include full game mechanics or controls. It simply moves the player character up the screen. You can expand upon this to create a full game with obstacles, score tracking, and interactive controls.