add JS for redo search in map, unfinished