minor change to JS api