added angular javascript to code