fixed main,js so that map is displaying successfully