Updated script inclusions at end of index.html and added templates.js