attempt 6: require events.js in application.rb