updated js for scroll and nav arrow