adding javascript print functions