testing events.js with an alert