Moved scrollToTop function to a service to keep extensive DOM manipulation out of controller as well as be able to share it between controllers