Refactoring

We're down ~500 lines of code on mouseEvents.js! And with even more functionality!
True enough. Eventually we should get rid of the if-else block here entirely, though. Talk in person.