fixing a couple html errors in printing template
cleaning up the js with jshint