Closes #16 Separating the metadata collection from main.js