Cleanup dynamoEvents.js