fixed html and emit functions

html function:
1) when "h" is equal to 1, the expression "h == true" returns true, but
should be false
2) modified value must be a string