Made test compatible with older browsers.