automatically remove duplicates when saving queues
trimming the js