Javascript iffe skeleton