Updating for cross browser compatibility