Updated and fixed firefox incompatibilities