Is it idiomatic here to have `onload="..."` for initialization of the `BasketCtrl` state? It looks strange at least.