Added custom event action, custom JavaScript and fixed events broken by change from 'events' property to 'event'