var point = {} point.add = function(a,b) { return {x: a.x+b.x, y: a.y+b.y} } return point