refactor jpetstore by angularjs