Object.watch implementation using ECMA 5