index, index_minorityMap, map_lib.js from Natalia