Refactored SupplyOrder js