JavaScript for URL Shorten