[refactor] js structure
[refactor] photos in photos folder