Customize Javascript functions

Added ArcGISPreview, externalLink and externalDownload