@rockymeza, I will take this back because at the beginning of the file, catalog is reinitialized as a new array: 
    var catalog = new Array();