minor change to JS