smooth scrolling, modularized js