code: public static void renderAutoScrollFunction(FacesContext facesContext,
              ResponseWriter writer) throws IOException
      {
          HtmlJavaScriptUtils.renderAutoScrollFunction(facesContext, writer);
      }
docs: Renders the autoscroll javascript function.