Moving 'this.push(file)' to the end of the callback function