Update map.js

* fix annoying indent
* stop call setTimeout() so often