Fixed Function.apply usage for node.js

Browsers accept the array-like object, but node.js seems to want an actual array.