Updated for Firefox 23