An AngularJS implementation of Douglas Crockford's implementation of the AJAX monad