Tweaking of script file

Moved around <html> rendering, and other misc small changes.