Add end event listeners to README examples