utility javascript module to set object literals used as options for functions