bug with the script and style tags at the end of the window