Well. It's my fault again. I was thinking one thing, and writing something else. What I did was add async: false instead of async: true.
Changed that thing, and now it's working. Nevertheless according do jquery documentation it should be true by default. Anyway if someone is looking for this kind solution - don't user componet. Ask X-action directly through ajax, and make sure it's set to be asynchronous.