Adding some clarifying comments to JS