change JS sha512 call