update photo js change click to tap