an implementation of Web workers pool to facilitate task distribution and pool maintenance