Add example to JavaScript Events