This function returns only the URL - you're responsible for embedding the URL into the page as a script tag to actually load the resources.
public static string GetJavaScriptGlobalResourcesUrl(string varName, string resourceSet, string localeId, ResourceProviderTypes resourceType);
resourceSet
localeId
resourceType