WIP: using the webworker for calculation