Update html.js

add view of error