added additional attribute 'duration' to smoothScroll