fix jslint/pep8 errors. Disabled jslint W025 on my local setup