Added template HTML file.

Also updated relevant JS files.