modifed JSON structure and jquery for orders