Fix for compatibility with chrome based browsers.

thanks to 1024--