converting over to angularjs
porting over to use angularjs