complete the js control of show_images page.