Functions globally defined when it shouldn't be

The functions `updateList` and `teardownList` are meant to be local variables in this context but are added to the window due to not being declared. Causes hard to track down issues when you have multiple lists being bound at the time same time.