It's really easy to port/wrap plain JavaScript code to Erbix/CommonJS; this is the first thing we've noticed while coding on Erbix Blog/Form Creator/ActiveRecord (included in Blog, a port from TrimPath Junction).
One other example si UnderscoreJS, the library is already "ported"; this code does the trick: if (typeof exports !== 'undefined') exports._ = _;
http://documentcloud.github.com/underscore/
We would welcome your suggestions on the frameworks you want us to take a look into.