modify calculating.js file for copy and paste table page