Calling JavaScript function after AJAX Call