added lazy loading of images to index.php and associated js files