Don't emit JS templates more than once
Revert .innerHTML to .html() so inline javascript is executed -- will investigate if inline javascript can be refactored
Deal with request contexts when resolving using the new method