lots of (mostly minor) changes

- no longer import entire namespaces; just the functions we use
- should probably deprecate some of the HTML functions from before