Moved template data to script tags in the index
Remove no longer used code for loading template files