Added print button functionality

new JS and edits to php