added support for more browsers