[AS] - orders table and js refactor