minor photo js change