Edits to JS