JS: rewrite scroll top