Update threads.js