moved config to js file