Event emitters in the browser