implementing ajax request for images list

List of images is provided by ajax get request when the user click the open button.