remove media specific css and fix a few firefox js bugs