polyfills, or shims, for web browser javascript API implementations