Code review fixes:
* Use .hasClass() instead of .is() where possible
* More succinct math operators in DropdownEventHandler._tryToSelect()
* Document language-change events
* Improve some more JS code hints docs