fix references to script from HTML file