Optimize getMousePosition.

FYI, I'm working on a project that has to do with performance on a mass scale with Leaflet, I will be committing a number of patches to make it faster, specifically in IE and Firefox.