core.js from frontend