add finish events and change example compoundjs