a program to print the page using javascript