Add comments for readability to JS file