Added javascript to some features of the map's polygons and markers