added javascript on photo