Resolve error thrown when compiling Gistbook.

The compiler uses a jQuery Deferred, which doesn't have a 'catch' method, so
I swapped it for the 'fail' method.

Resolves #295
v0.1.14