Moved core.js to components directory