pulled out the calculate parents method

also changed the index.html page so that it loops through a stats
variable to show the results of all the skill assignments.