This reverts/refactors this pull request: https://github.com/umbraco/Umbraco-CMS/pull/722/files Since JsSource can be used for a file path or actual javascript, we can't use IOHelper.ResolveUrl here. Instead we're moving it to the GetLegacyActionJs() method, which already handles deciding if it's a code or a URL. 💩