var foo = { property: '', bar: function() { alert("bar within foo object"); } }