add file extension detection to embeddable viewer