Fix 'aoj' and update r2.js for nodejs integration