Added PEP8 style comments to all of the JS code.