URL Shortener using goo.gl.
<script src="lib/WMURLShortener.js"></script>
<script>
new WMURLShortener().shorten(longUrl, function(err, shortUrl){
console.log(shortUrl);
});
</script>
importScripts("lib/WMURLShortener.js");
new WMURLShortener().shorten(longUrl, function(err, shortUrl){
console.log(shortUrl);
});
var WMURLShortener = require("lib/duxca.wmurlshortener.js");
new WMURLShortener().shorten(longUrl, function(err, shortUrl){
console.log(shortUrl);
});