Added javascript to only show page after images are loaded