updates iife, adds object.method
forgot to add method