Update html2json.js

Creates some bugs when trying to parse large HTML content