Update map.js

- Add optimized the marker options to support animated GIFs or PNGs
- Fix if statement
Merge pull request #117 from stefanbuck/patch-1

Update map.js