add pool for threads.ml.js