$(wrapper).on("click","#remove",function(e){
        e.preventDefault();
        $(this).parent('div').remove();
        x--;
    });