Wrap hmset to take a javascript object.