command line args,
finish the javascript for the demo, including listen, cancel, and clear for events.
