code cleaning in total_info.js