Improvements to cross browser compatibility