fixed js errors for map.
Merge pull request #6 from jaime5x5/master

fixed js errors for map.