move cb_base.js to cb-render