Add javascript main to smooth scrolling