change to JS