Makes Affix tests pass on PhantomJS too