Bug #4/ #9, Fix Internet Explorer 8 browser-compatibility - Map JS

* Reduce the number of Javascript errors that MSIE 8 complains about