Convert slate config to javascript.