Simplify the code (remove shims for older browsers, and fall back to a page refresh instead)