Added new calculateVolume function to control volume with UI knob - need to add default vol on page load