improving cross-browser compatibility