created categories js and added scroll-to-top onAfterAction