Converts a javascript object to a md5 hash