don't implement S3 methods within htmltools

rather, provide helper functions that can be called by packages that do implement the methods