modifications to intersection.js (events)