Modernizing inline script tags for templates & JS API

4 posts were split to a new topic: Debugging the page change API after migration