public function on($event, $callback) { $this->script = <<<EOT \$('#{$this->id}').on('{$event}', function() { {$callback} }); EOT; }