Here's an example of a simple text-based game implemented as a single HTML file with JavaScript. It incorporates the concept of being stuck in a haunted facility with no way out and something lurking around. Since you mentioned using pictograms, I'll use simple ASCII art to represent the visuals.
In this game, the player starts by getting an introduction to the haunted facility. Then, they enter a dimly lit room where they can choose to search the room or go back. The display of the room is represented by ASCII art. If the player searches the room, they find a key, and if they go back, they return to the previous room. The game loops back to the room scene until the player decides to exit the game.