added a success callback
Merge pull request #149 from red-admirals-2014/ajax_request_tests

added a success callback