Update pool.js