docs and better test coverage for older browsers