update core.js to ver. 2