XORSHIFT-ADD from Javascript