Introduced HashMap to hold attribute name and (js) value.