Add comments to JS functions.