Do javascript for metadata images