use proxy instead of document.write()