finish moving config to separate js file