I wanted to define names for html input forms with dot notation like field names of eBay trading api response. I searched google and found very good example on stackoverflow community. I will paste the javascript code here.