Creates calculator.js
Adds calculator.js script to index.html
Adds TrainingCalculator with totalTrainingTime and totalElixerCost functions
Adds name attribute to TroopGroup object
Removes unncessary semicolons
Makes TrainingCalculator.troopGroups an empty object upon instantiation.
BUGFIX: TrainingCalculator functions totalTrainingTime and totalElixerCost now return accurate integers
Adds semicolons after TroopGroup instance definitions
Adds TroopTrainer object for namespacing
Moves trainingTime and elixerCost calculating functions from TroopGroup to Calculator
BUGFIX: troopGroup level can only be set as high as there are possible elixer costs
Renames elixerCosts to possibleElixerCosts
Renames elixerCost to currentElixerCost
Merge pull request #3 from antoniodangond/calculator

Calculator