Change content serialization with innerHTML for template to support more browsers