code cleanup
worked on CRM-12407, ajax events are fired for each of the multiple of
data instance simultaneously this causes race condition and casuses
random breaks, hence changing ajax request to use async mode.
Merge pull request #539 from kurund/CRM-12407

CRM-12407