figured out how to send an AJAX request (but it is a hack - not suited for real-world applications)