Handling multiple objects

Keywords´╝Ü javascript

Question: 

Im building a music mixer but i don't know how i can create multiple objects

Since i can't make a dynamic object name like in a loop i don't know how to handle this

var wavesurfer = WaveSurfer.create({
    container: '.regua div[regua-item="index-0"]',
    scrollParent : true
});

wavesurfer.load('link.mp3');
wavesurfer.play();

The problem is i can't call this more then once because it would rewrite the link from wavesurfer.load

Like this:

wavesurfer.load('link_2.mp3') // once i load another music this one will be destroyed
wavesurfer.load('link_3.mp3')

What is the solution here?

Answers: