updated map in js