Update $.scrollTo and rewrite param scroll logic