Fixed issue in sync where both conditions were firing on the check of jsonOrCb
Merge pull request #10 from jladuval/master

Fix to client#sync