Update htmlpreview.js