function init (cfg) {
  renderer.Document = cfg.Document;
  renderer.Element = cfg.Element;
  renderer.Comment = cfg.Comment;
  renderer.compileBundle = cfg.compileBundle;
}
Prepare framework config, basically about the virtual-DOM and JS bridge.
@param {object} cfg