Added support for browsers other than Chrome