How to use typescript with CommonJS (node, browserify) modules via examples.