Improved browser compatibility