Revert "Made saveAs function a worker function"

This reverts commit 972d77654a666570469c8e895347c4bd3b541ddb.