Photos, javascript for header layout