public function script($view = null)
{
if (!is_null($view)) {
$this->script_view = $view;
}
// create mapping for frontend
if (!$this->createdMapping) {
$this->createMapping();
}
return View::make($this->script_view, array('options' => $this->options, 'callbacks' => $this->callbacks, 'id' => $this->idName));
}