Issue #2 - add extra function to Message API.
Add common.js module compatibility.
Set local scope for variables.