compatibility fixes for Firefox 29