fix some firefox quirks
fixes firefox styles. fixes #41