Remove options.reverse and use slice().reverse() instead of an unrequired custom function