updated js functionality

smoothscrolling