Implementing cleanMesh in Webworker