Refactoring

We're down ~500 lines of code on mouseEvents.js! And with even more functionality!
Ah yes. The type would be just the first char of the section.