Updated for Firefox 24