more changes for scene-render.js