Improving IE support

This PR fixes the following:

- [x] Embedded document editing support in IE
- [x] `template` tag polyfill for browser that don't support it