Added comments to the JS.