Writing an Angular JS application end-2-end-Part 2