added support for chrome and safari