switch to js-style slate config