Worked on phonegap - added map functionality back in