Pass global Lib object as parameter of IIFE instead