Move namespace instantiation above IIFE