Added compatibility with nette.ajax.js