Added string representation for Node types.
Fixed returned values from JsValue.
--amend
Added strict checking of Node types when generating HTML.