The jQuery way is to combine two objects, taking into account duplicate keys to override one object by the other. There won't be any overlap between the parent and child classes' getState functions, so I don't think it's necessary to use jQuery here.

As for the `state['whatever']` vs `state.whatever`, they are exactly the same. I can change this if you want, but it won't make any difference. You can still nest this way.