I investigated the issue in the post below further. I found that this may be because all comments were removed during the simplification process. When I changed the configuration option to remove comments to false, I was able to generate an HTML file that could be imported normally. Is this related to the HTML structure?
I seem to recall seeing somewhere before that comments in JavaScript code appear to have a special purpose.