```js
nav.innerHTML = '<ul class="nav">'
    + u.map(config, function (item) {
        return getItemHTML(item); // if is not allowed, just return '' in getItemHTML()
    }).join('')
    + '</ul>';
```