Update threephase package

After optimization, the initialization time of threephase is now less than 7 seconds on my laptop. 
BTW, once I try to compile it into javascript, the generated .js file doesn't contain the threephase package. Do you know how to compile it with threephase package included?
This is your code, but I would put more parens here, it's not obvious to me what the order of operations is.