Include fail reason cookie

Include code from:
https://github.com/johnculviner/jquery.fileDownload/issues/27

Since the fail response is sent separate from the responseHTML there was no need to provide a default.