Moving code to Router.js, adding function scrollTo in App object