Fixing minifying issue which doesn't support variable of name 'function'