Gets a list fo files from a folder via the dirList.php
$.ajax({
type: "GET",
url: "dirList.php",
cache: false,
success: function(result){
var imList = [];
imList = result.split(",");
}
});