added a polyfill for object.watch, added watch calls to only render elements when they actually exist.