fix optional success/fail callbacks on ajaxRequest

some browsers require them to be undefined, rather than null, so don't
initialize to null