As an AI text-based model, I can provide you with a simple example of a game implemented as a single HTML file enclosed in script tags. Please note that I won't be able to assist with pictograms as that involves graphical elements. However, I can guide you on how to incorporate JavaScript into the game logic.
In the above code, we have a simple Ant Keeping game where you can collect food or feed the ants. The game logic is implemented using JavaScript functions (`feedAnts`, `collectFood`, and `startGame`). The game starts by calling the `startGame` function which prompts the user for a choice of action. Based on the input, either `feedAnts` or `collectFood` function is called, modifying the corresponding variables (`foodCount` and `antCount`) and displaying appropriate alerts.
Please note that JavaScript games can become significantly more complex depending on the requirements and desired gameplay mechanics.