Create swag.node.js

alert() used in javascript example does not work for non-browser use