Minor correction to JS