Make shorten function

Does not yet work with url storage