Moved settings to JS