Not sure I see the point in making this a dynamic JS file instead of generating a simple HTML file. Am I missing something?