Our pattern, so far, has been to keep the js functionality decoupled from the markup by having the page pass selectors into the modules through an ``init`` method (see [user.html](https://github.com/azavea/OTM2/blob/master/opentreemap/treemap/templates/treemap/user.html#L90)). Consider applying that pattern here.