Modernizing inline script tags for templates & JS API

There is the JS tab now, so you can probably use api.renderInOutlet now.