Simple CRUD operation using Google's AngularJs