moved config to js