Create generic-pool.js