added waypoints js to handle nav link states