fixed Object.watch to work properly in Firefox aswell