cleaned up jsonHTML and modified it for new version