store facts and send to queues in javascript