code: private String convertToJavacSriptArray(List<String> mediaIDs)
    {
      // in case there is no media visualizer do not build an array
      if (mediaIDs == null)
      {
        return "";
      }
      StringBuilder sb = new StringBuilder("\nvar mediaIDs = [ ");
      int size = mediaIDs.size();
      for (int i = 0; i < size; i++)
      {
        sb.append("\"");
        sb.append(mediaIDs.get(i));
        sb.append("\"");
        if (!(size - 1 - i == 0))
        {
          sb.append(", ");
        }
      }
      return sb.append(" ];\n").toString();
    }
docs: We need to know, in which place of DOM the media visulizer are plugged in,
  so we could  call the seekAndPlay() function with the help of
  PartiturVisualizer.js
  
  @param mediaIDs
  @return a string which represents a javascript array