Minor tweaks to allow basic compatiblity with Firefox.