Ajax order checking