jQuery.noConflict();
jQuery(document).ready(function($) {

function DropDown(el) {
 this.dd2 = el;
 this.initEvents();
  }
   DropDown.prototype = {
    initEvents : function() {
     var obj = this;

     obj.dd2.on('click', function(event){
      $(this).toggleClass('active');
      event.stopPropagation();
   }); 
   }
  }

   $(function() {
                                var dd2 = new DropDown( $('#dd2') );

    $(document).click(function() {
     $('.wrapper-dropdown-52').removeClass('active');
    });

   });
   });