Make links work, and set up JSON export