Handle survey 'complete' event

Source code: Survey setup
Survey.defaultBootstrapCss.navigationButton = "btn btn-primary";
Survey.Survey.cssType = "bootstrap";
var survey = new Survey.Model({questions:[{ type: "comment", name: "suggestions", title:"What do you think about SurveyJS library?" }]});

function surveyOnComplete(s) { 
    alert("Thanks for your answer!");
}


$("#surveyElement").Survey({
    model:survey,
    onComplete: surveyOnComplete
});