Adding JS hooks for scroll