updated for Firefox 21