added Events.js, taken from PropertySet.js, see #17