pass options to $.html in toString

fixes #611