update json format to accept value to assign to HTML element
comments and cleaning the code base