http://bost.ocks.org/mike/constancy/

I'm not entirely sure why I need it, but removing it seems to break things. The link above seems to explain partially why we need this.