cleaned up Stage.js