consolidatejs module, ported consolidate.js for ringojs platform