Function for hashing messages with MD5 in node.js