added async, so now it's possible to calc on server and getting info about current load (with little delay, but it's not necessary to wait till end of calculations). Trying to move code to client side with requirejs, haven't done yet.