pep8
removed debug code
fixed js code style