Wrong.  What we have been doing is defining the URL in the template and passing it into the javascript modules, with some exceptions for URLs that aren't reversible.

With the URLs used in multiple places in the app we've been placing them in [settings.js](https://github.com/azavea/OTM2/blob/master/opentreemap/treemap/templates/treemap/settings.js#L58) and otherwise included them in the init function of the JS module.