Improve event, give result ajax on event callback
Update example file