public function add_js_onready($code) { $this->js_onready .= $this->inline_js(main_fn::jquery_load($code)); }