added support for legacy & other browsers