making the second argument of the apply() call be an array for IE8