change JS params to match backend