fix for Firefox 3.5 - 15.x