Added logic to detect if responsive mode and click cart. If not responsive, no change. Also now set width and height of window to match env specified or use max as default