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