Correctly fixed script to use jQuery waypoints