some more javascript for changing orders