var myObj = { foo: "one", bar: "two", baz: false, deez: -1, login: function() { // lots and lots of code }, user: function() { // lots and lots of code }, beers: function() { function g(){}} // lots and lots of code }, varieties: function() { // lots and lots of code }, init: function() { // lots of jQuery document.ready stuff } } myObj.init();