improved support for older browsers