TODO: - clean code by isolating HTML into a template - find a better way to let the output validate, need to check if wpautop activated, then deactivate it if a bibtex tag found on the page