add three.js support. mobile corrections