updated javascript link to handle MIME types