adds headAppend and bodyAppend for html strings

fixes package json for examples
adds new example for html strings