separate map.js file, panning with inertia

still getting NaN errors in mousewheel zoom