added angular code to script and index