Fixed memory leak in playNotes.js