fix broken Buffer browser shim