code cleanup: dynamicObject.js and sound.js