Update ensure-valid-hash.js