Fix JSHint globals warnings. Use [].slice instead of Array.prototype.slice.