rems.js updated