improved map.js and added location services