move code javascript from html to js file for reuse
create photos page