Javsacript class loading images by window width