clean up some firefox/chrome differences