switching back and forth between three.js scene version 3 and 4