fix ReferenceError: html is not defined