You need a comma in your return object for setvalues. It's still not going to work, but at least that fixes your syntax error.
return {
getMess: function(){ return value1;},
getLab: function() { return value2;}
}
Also, it seems kind of odd returning the value1 and value2 in setvalue()
, could I suggest returning the values in the getter? Fixed and refactored in this Fiddle