update to JS API 3.11