fix js bug in volume control