Slideout menu, open/close with swipe gesture.
Cleaning up map.js.