Instead of (re)define the projection, the following script tag can be added to `wmts-from-capabilities.html`
```html
<script src="http://cdnjs.cloudflare.com/ajax/libs/proj4js/1.1.0/defs/EPSG21781.js" type="text/javascript"></script>
```
(not tested)