Completed Front-end Interview Test 

Completed with AngularJS
combine into single var