private boolean isJsFile(URI uri){
  ResourceType resourceType=ResourceType.getResourceType(uri);
  return (resourceType.equals(ResourceType.JS));
}

private boolean isJsFile ( URI uri ) { ResourceType resourceType = ResourceType . getResourceType ( uri ) ; return ( resourceType . equals ( ResourceType . JS ) ) ; }
check for raw js - files
