Change order js to match changes in api