Sure, here's an example of a simple horror game implemented as a single HTML file using JavaScript:
Please note that this is just a basic structure for a game and does not contain any specific horror elements or gameplay mechanics. You can add more functionality, graphics, and sounds as per your requirements.