Fixed problem with script and style tag closures