fixing javascript and worked on geocoding