Alert instead of document.write