JavaScript Slow Image After-loader