Heavily changed javascript viewmodel to contain children goals instead of parent