fix failing test in node js
extract jsSHA into separate file