Simple Async Testing with Mocha and Phantom JS. Use of jQuery Deferreds.