add comparison to jquery waypoint