AJAX with XMLHttpRequest working; version 1
final version for JALT conference demo
refactored display_preamble()
refactoring to use html_writer