You may have noticed a lot of plugin updates recently. I finally went and did this work for all of our core plugins. TuneIn is a great example of how you can separate your html and JavaScript: https://github.com/MediaBrowser/TuneIn Notice how it has separate js files and then registers them here: https://github.com/MediaBrowser/TuneIn/blob/master/MediaBrowser.Plugins.TuneIn/Plugin.cs#L25-L40 You can still get away with doing things the older ways, but you may run into some UI quir