standalone html document for local usage without webserver

in issue #35 i suggested to add a feature to generate a standalone html document for local usage without a webserver. i implemented this feature and offer this for merging.