Improved cross-browser compatibility