Minor JS fix on queue and editor