fixed bug with success and rror messages, weren't waiting until all ajax requests returned before displaying
Merge pull request #3 from felixthea/master

fixed bug with success and rror messages, weren't waiting until all ajax...