minor changes to JS files