Cross-browser compatibility solved