refactoring script.js
refactoring
print styles included