updated photos js file