Converted inline script templates

Converted inline script templates to template html files.