This may be my JS inexperience showing but would RailsResource.url = urlBuilder(url) be safer?