recode core.js