First modification to ImmersiveSpace.js