added angular code to core.js and index.html