As an AI text-based model, I am unable to create or provide external files such as HTML. However, I can help you with the concept and logic behind developing a basic version of a Five Nights at Freddy's game. Below is an example of how the game logic and structure could be implemented in JavaScript. Please note that this code alone will not run as an actual game and would need additional implementation for graphics, user interaction, and other game elements.
Please note that this is just a basic structure to give you an idea of the game's implementation. You would need to add additional functionalities, graphics, interactions, and more to complete the game as a fully functional version of Five Nights at Freddy's.