update core.js file