Misc JS fixes, Firefox CSS fix