$this->context->controller->addJS(($this->_path).'js/alert.js');
public function hookDisplayFooter($params){ $this->context->controller->addJS($this->_path . 'views/js/file.js');}
$myver = 'true-false';if($myvar) $this->addJS( _THEME_JS_DIR_.'myjs.js');