More work on getting AJAX to work