The jplayer playlist does not work with ajax

When I try to use jplayer with the page loaded through ajax, the following error appears:

TypeError was not detected: the & # 39; files can not be read & # 39; of undefined properties
in Object.Drupal.jPlayer.setFiles (eval in globalEval (jquery.min.js? v = 2.1.4: 2), : 173: 50)
in HTMLAnchorElement. (jplayer.js? pim57s: 104)
in HTMLAnchorElement.dispatch (jquery.min.js? v = 2.1.4: 3)
in HTMLAnchorElement.r.handle (jquery.min.js? v = 2.1.4: 3)

When looking at the code, everything seems to be fine in the html, all the players are correctly loaded and the files are there, but when I click on one of them to make it play, I get that error.