Added addAttribute, which allows you to update the values of html element with a JSON type object