split core.js from query.js