Comments added to JS functions