add js for images