created js for hiding and displaying borrow/return button