added js functions
Merge branch 'master' of https://github.com/freddyliu/MapApp