simple demonstration of how AJAX is used