I had been recently go into some javascript coding during my leisure time, and I messed up with those callback functions
It took me some time to handle them. I had been reading so many tutorials and blogs on the internet. It really mess up all the sequence of my functions!!!!! I really hate the callback function!!!
lol ..
first of all just try to make algorithm for the program
never start the coding directly :)
u will code that algorithm into any computer language
just try to learn the basic concepts