updates config for js