Transparent error handling when an ajax call failed.

jquery.waypoints & jquery.modal.