Refactoring

We're down ~500 lines of code on mouseEvents.js! And with even more functionality!
We should be able to do all three of F/S/Y in a loop, somehow.