Programming with asynchronous callbacks is harder than it needs to be. But, according to Erin Swenson-Healey, ECMAScript 6 generators can alleviate some of the pain you're experiencing. For demos of ECMAScript 6 generators, in action, check out http://es6-gen.herokuapp.com/
NewCircle's Java Training: http://crcl.to/j0z6s
http://www.meetup.com/jsmeetup/