updates to JS