Creating an array in JavaScript can be done like this:
var myArray = new Array();
myArray.push({ url: urlValue, filename: fileNameValue });
As time goes on, the array will accumulate various items. If you need to delete a specific row based on the urlValue, here's how you can do it (by row, we mean deleting both the urlValue and fileNameValue). For example, imagine you want to delete a row where urlValue is and fileNameValue is picseasonNewName.jpg.