this is javascript based program. In this the json objects are created by reading the HTML document elements