rems.js polyfill