Added comments to JS