Minimal js version of http://desandro.github.io/imagesloaded/