added shim for Array.prototype.slice.call