included fotos.js, bug fixes and small improvements