removing document.write and adding black fill