The jQuery Mockjax Plugin provides a simple and extremely flexible interface for mocking or simulating ajax requests and responses