An object hydrator for AngularJS