Fix log function which wasn't working in a node.js context.
Merge pull request #64 from colinbate/fix-console-log

Fix log function which wasn't working in a node.js context.