Added optional callback function on AJAX completion