add makeFunctionArgs to optimize js