added initialConfig to JS