deleted space
added iife attaching functions to a passed object