reverse() doesn't work on mobile safari?