private void addGeneratedJSResource(FacesContext context,String resourceName,String library,UIViewRoot view){
  addGeneratedResource(context,resourceName,"javax.faces.resource.Script",library,view);
}

private void addGeneratedJSResource ( FacesContext context , String resourceName , String library , UIViewRoot view ) { addGeneratedResource ( context , resourceName , "javax.faces.resource.Script" , library , view ) ; }
add a new js resource .
