In JavaScript you can do the following:
var obj = { property: 1, method1: function() { //... }, method2: function() { //... }