jquery async bug fixed