Added compatibility with nette.ajax.js

I have not tested it, but this change makes the script compatible with `nette.ajax.js` while it remains fully working without it.