var fasoon = fasoon || {}; (function (ns, $) { "use strict"; ns.QuotePriceStep3 = function () { this.construct.apply(this, arguments); }; var proto = ns.QuotePriceStep3.prototype; proto.construct = function (options) { this.options = $.extend({ form_id: undefined, plugins_url: undefined }, options); this.form = $('#' + this.options.form_id); if (!this.form.length) { alert('Form #' + this.options.form_id + ' is not found.'); return; } }; })(fasoon, jQuery);