moved photo to js