LBD-28 [Tania,Pamela,Rodrigo] Refactor of map js and adding tests of map