changes to make loading templates in to the browser easier