Improvements to JS.