change the javascript in the borrow page