fix template rendering
improve Object.observe polyfill compatibility