Fixes for Firefox & JScript.