this will not work in fx, you'll need something like this https://github.com/mozilla/kuma/blob/master/media/redesign/js/main.js#L184