To add SharePoint:ScriptLink tags to your master on-the-fly, you can use a custom action or a delegate control. The following references provide the details: http://sharepoint.stackexchange.com/questions/56731/add-script-reference-to-all-pages-in-a-site-collection-when-a-feature-is-activat https://msdn.microsoft.com/en-us/library/ms463169(v=office.12).aspx