make done callback function (instead of function-expression): dont create it new on each iteration
Merge pull request #353 from quadroid/master

make done callback function (instead of function-expression)