Small JS bugs
PEP-8 conformance