Adding javascript code for URL shortening on top