new optimized ring.js