This version assumes the local resource set for the current request/page and autodetected resources (resdb or resx). It also uses the CurrentUICulture as the locale.
public static string GetJavaScriptLocalResourcesUrl(string varName, bool includeControls);
includeControls