core index.js