Updated for Firefox 29