added Firefox Compatibility