Sure, here's an example of a simple text-based horror game implemented as a single HTML file, utilizing JavaScript and enclosed in script tags:
To play the game, open the HTML file on a smartphone in a browser. The game will prompt you for actions to take, and you can type either "explore" or "escape" to progress in the game. The game will generate alerts with the story and outcomes based on your actions.