changed config from json to js