Added anthologies set. Moved some shared code into a new shared.js file.