Update WriteQueue.js