If you want to add a js file only in page product and category for example, you can do this :
public function hookDisplayHeader($params)
{
$allowed_controllers = array('product', 'category');
$_controller = $this->context->controller;
if (isset($_controller->php_self) && in_array($_controller->php_self, $allowed_controllers)) {
$this->context->controller->addCss($this->_path . 'css/front.css', 'all');
$this->context->controller->addJs($this->_path . 'js/front.js');
}
}