It wouldn't recognize Firefox with this kind of regex so browser was still transparent when it shouldn't