add comments to JS code