Update js to handel undefined img_urls