update core.js