added index.js to core
added index.js to core