Tree ratio is calculated from JSON data

The width of the SkillTree rectangle is now calculated with the ration
from the JSON data.