javascript variant of slate config