Move photos JS to global.js
Merge branch 'photos'