only import the functions we need from htmlwidgets