Top 10 JavaScript errors from 1000+ projects (and how to avoid them)