fix document.write script 兼容BUG