Fixed PDF print function in reveal.js template.

Closes #1220.  Thanks to kevinkenan.