updated for Firefox 25