fix audio.js issue with variable visibility