Seperated out public/core.js into controllers/services