You need to use the setProperties(obj) method.
setProperties(obj)
InstanceNode.setProperties({'propertyName': 'propertyValue'});