Refactor main and surgeon.js files
Add counts to radio buttons for total records