Update Print.js

leaking local variable into global scope.