Test

             var iEventPlan_widget = window.iEventPlan_widget || {};         (function() {

        if ( $(window).width() <= 320) {             var widgetWidth = 300;             var widgetHeight = 1000;         } else if (( $(window).width() > 320) && ( $(window).width() <= 768)) {             var widgetWidth = 650;             var widgetHeight = 1000;         } else {             var widgetWidth = 800;             var widgetHeight = 800;         }             iEventPlan_widget.hash = "f457c545a9ded88f18ecee47145a72c0";             iEventPlan_widget.width = widgetWidth;             iEventPlan_widget.height = widgetHeight;             iEventPlan_widget.extraParams = {                      first_name : "",                  last_name  : "",                  address    : "",                  city       : "",                  state      : "",                  zip        : "",                  email        : "",                  phone      : ""             };             var script = document.createElement("script");             script.async = true;             script.id = "ieventplan_widget_source";             script.src = "http://www.ieventplan.com/assets/js/embed.js";             var entry = document.getElementsByTagName("script")[0];             entry.parentNode.insertBefore(script, entry);         })();