Changed maps to allow pins.
Replaced maps search call with the JS api