Added albums to gallery and added empty-page detection through javascript to the gallery pagess