Short urls using google apis and jquery