fixed setVolume
simple refactorings of control.js