Edit to JS