mock ajax helper: only call success/error if they're set
BD.ajax callback methods should be called with context