[javascript] How can I pass arguments to anonymous functions in JavaScript?