add cb_fail and replace cb with cb_done in illiad functions. Update as.html to alert in case there is no event found