Make checkHtml accept either raw JSON or a file containing JSON.