Added a hook for DOM API