A waypoints library written in plain JavaScript