Add some more API features to the HTMLWidget class.