[Slate] Convert config to JS format