 tpl      = tpl.replace(/\{key\}/g, new Date().getTime());
            var $tpl = $(tpl);
            $(this).parent().before($tpl);
        });

        $('.wrap').on('click', '.home-lang-delete-btn', function () {
            $(this).parents('.home-lang-row').remove();
        });

        $('#admin-lang-add-btn').click(function () {
            var tpl  = $('#admin-lang-item-tpl').html();
            tpl      = tpl.replace(/\{key\}/g, new Date().getTime());
            var $tpl = $(tpl);
            $(th