Jwd html

Fixes issues #177, #178, #179, #180