pretty print output into div