make tei.js loadable from browser