hermite.js - main function, fastest way.
worker-handler.js - function that splits image, sends each peace to resize and combines results
worker-hermite.js - worker, must be in same domain
- slower than single core, because sharing resources, combining takes additional time. And there are no ways to get CPU count with JS.