adding saving map to localStorage

I added saving current map in localStorage by pressing "K" button.