Added compatability for chrome

compatability for chrome added