You're using .call
incorrectly. The correct syntax for call
is
fun.call(thisArg[, arg1[, arg2[, ...]]])
See the docs.
The first parameter is the "scope" or the this
object within the function. Subsequent arguments are passed to your function's parameters.
However in this situation it's best to use @elclanrs suggestion in your comments.