Is there a better place to put this function? ripemd160.js is some kind of compiled js from somewhere else. Shouldn't this new function be in the same place as that other code, and then compiled in? Or maybe this function should be somewhere else entirely ... so that we still use the ripemd160.js function only via some higher level interface where your new function is.