Finish porting BBRouteData.m to JavaScript (fix #2)