added support for Object.observe in supported browsers