Fixup js for firefox rendering