functional js-based resizing for all screen sizes, changed CDN to mediatemple