Improved selection of xml3d.js version