shim directly when in the browser