adding routes to the javascript objects that come from the resource controller docblock