added support for three.js apps