Stop storing waypoint id references in jQuery data, fixes #243