Minor changes to JS.