Standalone JavaScript utility for image lazy-loading