change html parser to use json

the regex were not working anymore. I updated to use JSON information.