hi Joakim,
it seems you have some problems with initializing the sc-player.
I'd recommend you embed the script file statically, like in our example, also right after it you can disable the auto init by:
$.fn.scPlayer.defaults.onDomReady = null;
then, after you get the tracks from our api search, generate the link nodes in your dom, where you want your players to be (like you probably do now)
so you got something like that in your html dom:
and then convert these links to players:
$('a.sc-player').scPlayer();
so you don't need to reload the sc-player.js anymore.
also before replacing the existing players you might want to stop the currently playing player:
$('.sc-player.playing a.sc-pause').click();
I hope I could help you, if not, let me know more about you code flow.
greets from Berlin,