将filename作为变量传递给jQuery脚本

I want to pass a filename to a jQuery script. The complete path is set as a variable in a php file called $filerurl. jQuery should open the file, using the path and filename in that variable, but it is not working at all. Is there something wrong with using url: "", or is the variable not being passed to the script for some reason?

If I hardcode the filename into the jQuery script it works.

jQuery(document).ready(function() {
 "use strict";
 jQuery.ajax({
    type: "GET",
    url: "<?php echo $fileurl?>",
    dataType: "text",
    success: function(data) {processData(data);}
  });
});

Thanks!