htmlpreview doesn't like any JS at the bottom at all