public static void addJavascriptResource(FacesContext context, String libraryName, String resourceName) {
        addResource(context, RENDERER_SCRIPT, libraryName, resourceName);
    }
Adds a JavaScript resource to the view.

@param context The FacesContext
@param libraryName The library name containing the resource
@param resourceName The name of the JavaScript resource
primefaces/src/main/java/org/primefaces/util/ResourceUtils.java