fixed the element.style problem in Firefox