Text this: A Mellin space approach to cosmological correlators