slate.js: Port all of regular Slate config to JS