As Mohamed pointed out, you will need to create a proxy service on the same site on which your page is hosted, since this is a request for a cross-domain domain.
This should fail in all browsers unless you explicitly allow cross-domain requests in your browser. If bit.ly supported cross-domain requests through the W3C specification for Access-Control-Allow-Origin, then your code will work.
Kinlan
source share