Add core.js logic