Made sendMessage local function rather than global
Merge branch 'master' of https://github.com/marc-harry/node-js-experimentation.git