saving waypoints, unobtrusive js