Improvement/cleanup global scope

Cleanups the global scope by removing unnecessary module vars. If the IIFE's look strange, I can always remove them :). However, then the TabsController would have to be inlined.