added classes to document.write() element