05-architecture: handle errors for JS service calls in jquery client