Update _events.js

remove setGlobal reference