title: javascript jquery create and listen for event
body: <p>Is there an simple example of how to create an event in javascript and listen for it?</p>
  
  <p>Trying to create a Complete event, similar to the ajaxComplete. Want other stuff on the page to show messages when Complete event is fired.</p>