For the most part this was semicolon fixes, but there was a function, `calledMethod`, which did need to be moved out of the loop.
This will make it far easier to ensure that components are in their own modules as well as make it possible to have custom builds of Select2.