Port the rest of the BBRouteData functions to JavaScript