Fixed echo->document.write