code: public static boolean isJSFilename (@Nullable final String sFilename)
    {
      if (StringHelper.hasNoText (sFilename))
        return false;
  
      // Second check for URLs with parameters
      return sFilename.endsWith (CJS.FILE_EXTENSION_JS) ||
             sFilename.contains (JS_IN_URL) ||
             sFilename.contains (JS_IN_URL2);
    }
docs: Check if the passed filename is a JS filename. Either it ends with ".js" or
  it contains ".js?" or ".js#" (both for URLs). Please note that every
  minified JS filename is also a "valid" filename in the sense of this
  method. That's why there is a {@link #isRegularJSFilename(String)} method
  to check for non-minified JS filenames explicitly.
  
  @param sFilename
  Filename to check. May be <code>null</code>.
  @return <code>true</code> if it is a valid JS filename.