nit: this is not indented properly, you should also move the declaration of the |sample| variable here to simplify the code so that it reads

var sample = this._audioElement;