Somewhat related is that Elijah showed Aaron Powell this some time ago and he blogged about it at http://aaron-powell.com/javascript/stubbing-ajax-responses-w... but used a different mock objects generator. This technique has come in quite handy, so thanks for showing Aaron this Elijah.