DIMITRI: Header subnavigation fixes.

This makes the subnav work on Angular and Django pages. Hacky, but good enough for now.

![screen shot 2014-09-19 at 7 09 30 pm](https://cloud.githubusercontent.com/assets/137158/4343944/51b3d73c-406b-11e4-9873-b2192591413c.png)

Oh, this is just a self-executing function, mostly to scope `match`, but possibly in the hope that it gets factored out someday.