Changed javascript for working with new collectivegeo.js
pep8