Printing the die on a web page without refreshing the page