set up mainff.js for firefox fixes