moved core.js