JavaScript: Passing arguments to the callback function by using the object.