Add requireJS and commonJS support. add node.js example