added a new option `events`

the option is useful if you want the events to trigger
as soon as the page is loaded