Booden = window.Booden || {}; Booden.SimpleSample = window.Booden.SimpleSample || function () { }; // using function here Booden.SimpleSampleSettings = window.Booden.SimpleSampleSettings || {}; Booden.SimpleSampleSettings.Defaults = { val1: 'Just a Sample', val2: 'Of using ScriptParts', val3: 'In a different way', val4: 'It also works.' }; Booden.SimpleSampleSettings.RenderForm = function (body, settings, easyadd) { easyadd('val1', 'First text', settings.val1); easyadd('val2', 'Second text', settings.val2); easyadd('val3', 'Third text', settings.val3); easyadd('val4', 'Fourth text', settings.val4); }; // using prototype here Booden.SimpleSample.prototype.Render = function (el, settings) { var content = Booden.jq('