Improving smooth scrolling of demo