added tags for total troops and cost, added new js file to calculate total troops and cost and accommodated its use in main.js and index.html