I believe your looking for this . http://jsfiddle.net/SA2kQ/
A callback by my understanding (self taught so be warned) is a function B called on completion of another function A from within Function A . Thus the move of afterImagesLoaded(); from the domready to the onComplete of getImages().
