Reorganizing the Earth simulation to a more sensible layout and extracting mouse/touch tracking into a non-jQueryified movement.js. Still a work in progress, but this refactoring fixes some issues in velocity/acceleration tracking.