Cleanup onEventDemo. Change codetab to codeTab