Update print-pdf javascript snippet

This fixes the print-pdf css inclusion to work better, as suggested via a random article found while googling.