added AngularJs and REST calls