an ugly implementation of Bitly