Factored out the (mock) increment request function into an Angular JS service.