set up angular via core.js file