fixed bug on user profile print button

took some code out of view and put it in the print js