Added pre-defined 'events' object into user scripts