config to js