adding comments to JS code