Add javascript_events support to manifests and ui_setup.
Added javascript_events example to the demo plugin.