Split out core.js into a separate service and controller