added queues in JS script