Javascript function to identify urls and add anchor tags around them.