Added audio.js
Minor tweaks to code structure