Refactor dlclicks handling, to work with all kinds of weird ajax solutions