Abstracted code for simplified playing of audio files using the Web Audio API