create js module to handle waypoints logic. use match media to enable/disable waypoints