removing superfluous images and js