adding a WeakMap polyfill.