Fixed issue #8629:  The template.js file is now placed in the <body>
element instead of the <head> element.