Moved the html templates section scripts to be the first child after body tag.