Admin template generator was missing closing body/html markup

Admin command-based template output generator was missing closing body/html markup.

Also removed extraneous script tag.