reverted orders.js change