Updating casper plugin for events.