update core.js and add utils folder