adapted to new (more flexible) klay js version
produce two targets, one using a web worker and one not using a ww
minor fixes
new version