Update map size calculation
Unify leaflet js scripts, first step