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