Fix AJAX execution, using method from http://htmlunit.sourceforge.net/faq.html