consolidated to JS file.