get flash messages via JavaScript after AJAX save requests