Minor thing but I'd recommend just avoiding the hit of querying the DOM altogether if we already know it won't find anything:
```js
var targetId = element.getAttribute("data-clipboard-target"), targetEl = !targetId ? null : document.getElementById(targetId);
```