scroltotop js

some optimizations in frontend