Fix some JS bugs
Merge branch 'master' of github.com:ging/smart_city_guide