(function(win, $) { var AntiSpamCheckbox = function(parentElement, text) { var template = '' + '' + ''; this.element = $(template.replace(/\{id\}/g, '2Bvn2RtJyBAbu4e6yJaLcT7wIgCLujnk')); parentElement.append(this.element); }; win.AntiSpamCheckbox = AntiSpamCheckbox; $(document).ready(function() { }); }(window, jQuery));