Fixed null element in firefox.js