refactoring and splitting scenes.js