Fix type annotations in util.js
Optimized loop in events.js
Merge branch 'master' of github.com:jcayzac/duh