pulling the main page into it's own HTML.
This required putting the resUrl into the json data.
It's still a little awkward having to import the JS in the jelly so that it knows the rootURL,
 but I want this in it's own HTML to prevent having the temptation of using Jelly tags rather than raw HTML+Angular.