added public/core.js