Pass config options as js object