Tickets #1269 and #1288: Use Ajax on adding footnotes