Minor fixes to node.js/browser specific signature creation code.