ported node-js examples to ringo-js