fixes for c.geo javascript refactoring