How can I use Amazon widgets on Meteor?

Since Amazon widgets use document.write, if you includes the widget in html, Meteor outputs error.

How can I avoid it?