Convert a regular Javascript object into a eventted object.